package com.inifitness.tenant.core.system.mapper;

import java.util.List;
import java.util.Set;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.inifitness.tenant.core.system.model.bo.BizRouteBO;
import com.inifitness.tenant.core.system.model.entity.BizMenu;

import org.apache.ibatis.annotations.Mapper;

/**
 * 菜单持久接口层
 *
 * @author sunjinfeng
 * @since 2024/04/18 11:00:00
 */
@Mapper
public interface BizMenuMapper extends BaseMapper<BizMenu> {

  List<BizRouteBO> listRoutes();

  /**
   * 获取角色权限集合
   *
   * @param roles 角色编码集合
   * @return 权限并集
   */
  Set<String> listRolePerms(Set<String> roles);
}
